import Global from './global';

const dict = {};

/* --- 问诊付费方式ids --- */
dict.paymentMethodIds = [
  { id: 1, name: '自费' },
  { id: 2, name: '医保' },
];
// if (Global.isYiBao) {
//     dict.paymentMethodIds.push({ id: 2, name: '医保' })
// }


/* --- 角色类型 --- */
dict.roleIds = [
  { id: 'D', name: '医生' },
  { id: 'P', name: '用户' },
  { id: 'S', name: '服务点' },
  { id: 'D-E', name: '专家' },
];


/* --- 性别 --- */
dict.sexIds = [
  { id: '0', name: '女' },
  { id: '1', name: '男' },
  { id: '2', name: '保密' },
];


/* --- 婚姻状态 --- */
dict.marriedIds = [
  { id: '0', name: '未婚' },
  { id: '1', name: '已婚' },
  { id: '2', name: '离异' },
  { id: '3', name: '丧偶' },
];


/* --- 特殊情况 --- */
dict.specialIds = [
  { id: '备孕', name: '备孕' },
  { id: '怀孕', name: '怀孕' },
  { id: '哺乳期', name: '哺乳期' },
];


/* --- 用户来源 --- */
dict.userSourceIds = [
  { id: 'P', name: '个人' },
  { id: 'S', name: '服务点' },
];
if (Global.isAuto) dict.userSourceIds.push({ id: 'Z', name: '自主开方' });
if (Global.isAutoByYihan) dict.userSourceIds.push({ id: 'YD', name: '药店' });


/* --- his病历类型 --- */
dict.medicalTypeIds = [
  { id: '1', name: '西医' },
  { id: '2', name: '中医' },
];


export default dict;
